package cn.tedu.csmall.passport.mapper;

import cn.tedu.csmall.passport.pojo.entity.Admin;
import cn.tedu.csmall.passport.pojo.vo.AdminListItemVo;
import cn.tedu.csmall.passport.pojo.vo.AdminLoginInfoVo;
import cn.tedu.csmall.passport.pojo.vo.AdminStandardVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminMapper extends BaseMapper<Admin> {

    AdminLoginInfoVo getLoginInfoByUsername(String username);

    List<AdminListItemVo> list();

    int updatePasswordById(Long id,String password);

    AdminStandardVo getStandardById(Long id);
}
